import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
redirect:'/login'
    },
    {
      path: '/login',
      component: () => import('../views/admin/LoginView.vue')
    },
    {
      path: '/DisAdd',
      component: () => import('../views/discont/DiscontAddView.vue')
    },
    {
      path: '/Dislist',
      component: () => import('../views/discont/DiscontListView.vue')
    },
    {
      path: '/update',
      component: () => import('../views/discont/DiscontUpdView.vue')
    },
    {
      path: '/HMAdd',
      component: () => import('../views/housemoney/HouseMoneyAddView.vue')
    },
    {
      path: '/HMlist',
      component: () => import('../views/housemoney/HouseMoneyListView.vue')
    },
    {
      path: '/HMupdate',
      component: () => import('../views/housemoney/HouseMoneyUpdView.vue')
    },
    {
      path: '/HNAdd',
      component: () => import('../views/housenum/HouseNumAddView.vue')
    },
    {
      path: '/HNlist',
      component: () => import('../views/housenum/HouseNumListView.vue')
    }

  ]
})

export default router
